<?php 
include_once('connection/connection.php');
include('config.php');
$form_id=trim($_REQUEST['form_id']);
$sql_unhabit="select * from tbl_dtls_critical_unhabit where loc_id=".$form_id." order by id";
$query_unhabit=mysql_query($sql_unhabit);

//if($_POST['num_unhabit_crit']!=0 and $_POST['num_unhabit_crit']!='')
//{
?>
<table width="191" height="56"  border="0" cellpadding="0" bgcolor="#FDF9EE" id="table7">
	<tr>
		<td width="202" height="22" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Unlisted Habitation Name</font></td>
			<!--<td width="202" height="22" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Longitude</font></td>
			<td width="202" height="22" align="center" bgcolor="#F7E6B7">
			<font face="Verdana" style="font-size: 8.5pt" color="#990000">Latitude</font></td>-->
	</tr>
	<?php
	//echo $check=$_GET['check'];
/*$no=$_POST['num_unhabit_crit'];
if($no>0) 
{
for($i=1; $i<=$no; $i++)
{*/

  	$i=1;
	while($row_unhabit=mysql_fetch_array($query_unhabit))
	{
	//echo $x=$row_unhabit['unhabit_name'];
?>

	<tr>
		<td width="202" align="center">
	  <input type="text" name="un_habit_crit<?php echo $i;?>" id="un_habit_crit<?php echo $i;?>" size="20" class="txt" value="<?php echo $row_unhabit['unhabit_name']; ?>"></td>
	  <!--<td width="202" align="center">
	  <input type="text" name="un_longitude<?php //echo $i;?>" id="un_longitude<?php //echo $i;?>" size="20" class="txt" onBlur="float1(this)"></td>
	  <td width="202" align="center">
	  <input type="text" name="un_latitude<?php //echo $i;?>" id="un_latitude<?php //echo $i;?>" size="20" class="txt" onBlur="float1(this)"></td>-->
	</tr>	
<?php
$i++;
}  
//}
//}
?>
<input type="hidden" name="cnt_habit" id="cnt_habit" value="<?php echo $i;?>"/>
</table>
<?php //}?>
